
class Teacher implements Cloneable{        //深拷贝

    int[] data;

    public Teacher(int[] data){
        this.data = data;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
       Teacher teacher = (Teacher) super.clone();
       teacher.data = this.data.clone();
       return teacher;
    }
}

public class Test09 {
    public static void main(String[] args) {

    }
}
